home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 14 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: easy.in-chemnitz.de!mkmk!floh
  2. From: floh@mkmk.in-chemnitz.de (Andre Weissflog)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: SAS/C+Floating point problem
  5. Message-ID: <bc4Tx*Qz0@mkmk.in-chemnitz.de>
  6. Date: Tue, 02 Jan 1996 00:53:31 CET
  7. Reply-To: floh@mkmk.in-chemnitz.de
  8. References: <4c9b1p$46p@nntp.hut.fi>
  9. Distribution: world
  10. Organization: private uucp site
  11. X-Newsreader: Arn V 1.04
  12.  
  13. In article <4c9b1p$46p@nntp.hut.fi>, Marko H. Tamminen writes:
  14.  
  15. > I'm having major problems with SAS/C (v6) and it's floating points.
  16. > They work OK when I compile my program using the -lm option, but
  17. > when I've got a smakefile and use it, they don't seem to work. If I have 
  18. > a printf("%f",1.0); it just prints %f to the shell!! And also all 
  19. > calculations seem to be wrong, but can't check it, as I can't print out 
  20. > the results. sprintf is also malfunctioning!
  21. > In my smakefile I have MATH F in the compiler-options and lib:scmffp.lib 
  22. > is linked too.
  23. > What am I doing wrong, and how should I fix it? It's really starting to 
  24. > bugger me, and my project is in a stall because of this...
  25. I think the easiest way to fix this is to don't use any options
  26. in the smakefile at all and have an scoptions file in the project
  27. directory created by scopts. If you use "sc link" instead of "slink"
  28. in your makefile, the linker will be called with the correct
  29. options from the scoptions file.
  30.  
  31. Bye,
  32. -Floh.
  33.  
  34. ====//=== Andre Weissflog <floh@mkmk.in-chemnitz.de> =======
  35. ...// Sep'95: Return Of The Living Death...................
  36. \\// 90% of everything is crap (Sturgeon's Law)...........
  37. =\\===============================================Amiga!=
  38.  
  39.